import request from '@/utils/request'
export function upload(orderid, data) {
  return request({
    url: '/orderfile/set',
    data: {
      order: orderid,
      data: data
    },
    method: 'post'
  })
}
export function listFiles(orderid) {
  return request({
    url: '/orderfile/listbyorder',
    params: {
      'orderid': orderid
    },
    method: 'get'
  })
}
export function removeFile(fileId) {
  return request({
    url: '/orderfile/remove',
    params: {
      'id': fileId
    },
    method: 'get'
  })
}
